package metier;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.rmi.registry.Registry;
import java.util.Date;
import java.util.List;
import java.util.Properties;

public interface AgenceItf extends Remote {
	
	public Reservation passerReservation(Vehicule vehicule, Date dateDepart,
			Date dateArrivee, AgenceItf agenceDepart, AgenceItf agenceArrivee) throws RemoteException;

	public Vehicule rechercherVehiculeLibre(Date dateDepart, Date dateArrivee,
			TypeVehicule typeVehicule, AgenceItf agenceDepart) throws RemoteException;

	public double calculerPrix(Vehicule vehicule, String villeDepart,
			String villeArrivee) throws RemoteException;
	
	public boolean annulerReservation(int id) throws RemoteException;
	
	public void loadProperties() throws RemoteException;
	
	public void ChargerAgences (List<AgenceItf> Agences, Registry myRegistry, Properties prop)throws RemoteException;

	public String getNom() throws RemoteException;

}
